home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPSETUP.ZIP / APPSOUND.H < prev    next >
C/C++ Source or Header  |  1992-05-03  |  5KB  |  188 lines

  1. /*
  2.     Ownerb.h
  3. */
  4.  
  5. #define IDC_SCROLL    101         // child1 id
  6. #define IDC_ICONS    102         // child2,3,4,5 !!!
  7. #define IDC_BUTTONS    106         // child6,7,8,9 !!!
  8. #define IDC_EDITS    110         // child10, 11, 12 !!!
  9. #define IDC_TEXTS    113         // child13, 14, 15 !!!
  10. #define IDC_RADIOS    116         // child16, 17, 18 !!!
  11. #define IDC_CLOSEPROG    119         // child19
  12. #define IDC_NEXT    120         // child20, 21
  13. #define IDC_BUTTONLOOK    123
  14.  
  15. #define IDD_STAYINFRONT         200
  16. #define IDD_QUICKEXIT            201
  17. #define IDD_CLOSEALL            202
  18. #define IDD_DEFAULT            203
  19. #define IDD_DOUBLECLICK            204
  20. #define IDD_TOP                210
  21. #define IDD_SCROLLTOP            211
  22. #define IDD_LEFT            220
  23. #define IDD_SCROLLLEFT            221
  24. #define IDD_BUTTONS            230
  25. #define IDD_SCROLLBUTTONS        231
  26. #define IDD_ROWS            240
  27. #define IDD_SCROLLROWS            241
  28. #define IDD_SOUND            242
  29.  
  30. #define IDINIT_INIT            300
  31. #define IDINIT_CANCEL            301
  32. #define IDINIT_OK            302
  33. #define IDINIT_BROWSE            303
  34.  
  35. #define IDEXIT_NO            400
  36. #define IDEXIT_CANCEL            401
  37. #define IDEXIT_OK            402
  38.  
  39. #define IDEND_SHELL            500
  40. #define IDEND_LOAD            501
  41. #define IDEND_NONE            502
  42. #define IDEND_START            503
  43. #define IDEND_RESTART            504
  44. #define IDEND_EXIT            505
  45. #define IDEND_SAVE            506
  46. #define IDEND_OK            507
  47. #define IDEND_CANCEL            508
  48.  
  49. #define IDDIR_OK            600
  50. #define IDDIR_CANCEL            601
  51. #define IDDIR_LIST            602
  52. #define IDDIR_PATH            603
  53. #define IDDIR_TEXT            604
  54.  
  55. #define IDSOUND_EVENTS            701
  56. #define IDSOUND_FILES            702
  57. #define IDSOUND_TEST            703
  58. #define IDSOUND_ENABLE            705
  59.  
  60. #define INI_SYSTEM    "System"
  61. #define INI_BUTTON    "Buttons"
  62. #define INI_FILE    "appbar.ini"
  63.  
  64. #define LEFT        "Left"
  65. #define TOP        "Top"
  66. #define COLUMNS        "Columns"
  67. #define BUTTONS     "Buttons"
  68. #define QUICKEXIT    "QuickExit"
  69. #define CLOSEALL    "CloseAll"
  70. #define DOUBLECLICK    "DoubleClick"
  71. #define STAYINFRONT    "StayInFront"
  72. #define INITIALIZED    "Initialized"
  73. #define DEFAULTICONDIR    "DefaultIconDir"
  74.  
  75. #define LEFT_DEFAULT        "-1"
  76. #define TOP_DEFAULT        "-1"
  77. #define COLUMNS_DEFAULT        "1"
  78. #define BUTTONS_DEFAULT     "8"
  79. #define QUICK_DEFAULT        "0"
  80. #define CLOSEALL_DEFAULT    "1"
  81. #define DOUBLECLICK_DEFAULT "0"
  82. #define CLOSEPROG_DEFAULT   "1"
  83. #define SHOWMODE_DEFAULT    "0"
  84. #define STAYINFRONT_DEFAULT "0"
  85. #define INITIALIZED_DEFAULT "0"
  86. #define ICONNUMBER_DEFAULT  "0"
  87. #define BUTTONLOOK_DEFAULT  "0"
  88.  
  89. #define WINDOWS31    0x0310
  90.  
  91. #define MAXFILECHARS    70
  92. #define MAXDIGITS    5
  93. #define NUMICONS    4
  94. #define NUMEDITS    3
  95. #define MAXAPPS     32
  96. #define MAXRES        1280
  97.  
  98. typedef struct {
  99.     char    IcoName[MAXFILECHARS];
  100.     char    ProgName[MAXFILECHARS];
  101.     char    StartDir[MAXFILECHARS];
  102.     HWND    hWndApp;
  103.     int    IconNumber;
  104.     int    ButtonLook;
  105.     int    ProgStatus;
  106.     int    CloseProg;
  107.     int    ShowMode;
  108.     } APPBARBUTTONS;
  109.  
  110. typedef struct {
  111.     short    Left;
  112.     short    Top;
  113.     int    Columns;
  114.     int    Buttons;
  115.     int    QuickExit;
  116.     int    CloseAll;
  117.     int    DoubleClick;
  118.     int    StayInFront;
  119.     int    Initialized;
  120.     char    DefaultIconDir[MAXFILECHARS];
  121.     } APPSYSTEM;
  122.  
  123. typedef enum {ICONFOCUS = 0, EXEFOCUS = 1, DIRFOCUS = 2} FOCUS;
  124.  
  125. char szBuffer[256];
  126. extern APPBARBUTTONS AppButton[MAXAPPS];
  127. extern APPSYSTEM     AppSystem, AppSystemNew;
  128. extern HWND         hwndIcon[NUMICONS], hwndScroll, hwndEdit[3], hwndButton[4];
  129. extern HWND         hWnd, hwndText[3], hwndRadioButton[3], hwndCloseProg;
  130. extern HWND         hwndNext[2], hwndButtonLook;
  131. extern HINSTANCE     hInst;
  132. extern HBITMAP         hAppSetup;
  133. extern BOOL         bSave, bSaveButton[MAXAPPS], bCurrentIcon[NUMICONS], bNewDir;
  134. extern int         iCurrent, iBlackIcon, iPrevBlackIcon, MaxIconNumber[MAXAPPS];
  135. extern int         cxChar, cyChar;
  136. extern FOCUS         nFocus;
  137. extern FARPROC         lpfnOldEdit[NUMEDITS];
  138. extern char         Directory[256], TempStr[256];
  139.  
  140.  
  141. /* defined in ownerb.c */
  142. long WINAPI MainWndProc(HWND, UINT, WPARAM, LPARAM);
  143.  
  144. /* defined in appedit.c */
  145. long WINAPI EditProc(HWND, UINT, WPARAM, LPARAM);
  146.  
  147. /* defined in init.c */
  148. extern BOOL InitFirstInstance(HINSTANCE);
  149.  
  150. /* defined in border.c */
  151. extern VOID InnerBorder(HDC hDC, RECT rect);
  152.  
  153. /* defined in AppTools.c */
  154. extern VOID OkMsgBox(char *szCaption, char *szFormat, ...);
  155. extern VOID ErrorMsgBox(char *szCaption, char *szFormat, ...);
  156. extern VOID PASCAL IniRead(VOID);
  157. extern VOID PASCAL IniSave(VOID);
  158. extern VOID UpdateEditWindows(int iCurrent);
  159. extern VOID UpdateRadioButtons(int iCurrentRB);
  160. extern VOID UpdateScrollIcons(int iCurrentIcon);
  161. extern VOID UpdateNextButtons(int);
  162. extern VOID CreateAllChildWindows(HWND hWnd, HINSTANCE hInst);
  163. extern HICON LoadIconFromFile(int i);
  164. extern HBRUSH SetColorLightGray(HWND hWnd, HDC hDC);
  165. extern TEXTMETRIC RetrieveTextMetrics(HWND hWnd);
  166. extern void FileErrorHandler(void);
  167.  
  168. /* defined in appsys.c */
  169. BOOL WINAPI SystemDlgProc(HWND, UINT, WPARAM, LPARAM);
  170.  
  171. /* defined in appinit.c */
  172. BOOL WINAPI InitDlgProc(HWND, UINT, WPARAM, LPARAM);
  173.  
  174. /* defined in append.c */
  175. BOOL WINAPI InitEndDlgProc(HWND, UINT, WPARAM, LPARAM);
  176.  
  177. /* defined in appexit.c */
  178. BOOL WINAPI ExitDlgProc(HWND, UINT, WPARAM, LPARAM);
  179.  
  180. /* defined in appbrows.c */
  181. BOOL PASCAL FileBrowse(FOCUS);
  182. BOOL WINAPI SelectDirDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  183. void UpdateListBox(HWND hDlg);
  184. UINT GetListBoxIndex(HWND hDlg);
  185.  
  186. /* defined in appsound.c */
  187. BOOL WINAPI SoundDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  188.